<?php

namespace Admin\Model;
use Think\Model\ViewModel;

class ArticleViewModel extends ViewModel{
	public $viewFields = array(
		'Article' =>  array('id', 'uid', 'title', 'category_id', 'position', 'display', 'view', 'create_time', 'update_time'),
		'Category' => array('title' => 'categoryTitle', '_on' => 'Article.category_id = Category.id'),
	);
}